﻿using System;

namespace AnglicanGeek.LiveWriter
{
    public class StubFormFactory : IFormFactory
    {
        public StubInsertSourceCodeDialog StubInsertSourceCodeDialog { get; set; }
        
        public IInsertSourceCodeDialog CreateInsertSourceCodeDialog()
        {
            return StubInsertSourceCodeDialog;
        }

        public static StubFormFactory Create()
        {
            var stubInsertSourceCodeDialog = new StubInsertSourceCodeDialog();
            
            var stubFormFactory = new StubFormFactory();
            stubFormFactory.StubInsertSourceCodeDialog = stubInsertSourceCodeDialog;
            
            return stubFormFactory;
        }
    }
}
